
.@{prefixCls} {
  position: relative;
  width: auto;
  top: 100px;
  margin: 0 auto;
  max-width: calc(100vw - 32px);
  padding-bottom: 24px;
  color: #000000d9;
  font-size: 14px;
  &-wrapper {
    position: fixed;
    overflow: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: @zIndex;
    -webkit-overflow-scrolling: touch;
    outline: 0;
  }

  &-title {
    margin: 0;
    color: #000000d9;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    word-wrap: break-word;
  }

  &-content {
    position: relative;
    background-color: #fff;
    border: 0;
    background-clip: padding-box;
    border-radius: 2px;
    box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014,
      0 9px 28px 8px #0000000d;
    pointer-events: auto;
  }

  &-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1050;
    padding: 0;
    color: #00000073;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
    transition: color 0.3s;

    &-x {
      display: block;
      width: 54px;
      height: 54px;
      font-size: 16px;
      font-style: normal;
      line-height: 54px;
      text-align: center;
      text-transform: none;
      text-rendering: auto;
    }

    &:focus,
    &:hover {
      color: #000000bf;
      text-decoration: none;
    }
  }

  &-header {
    padding: 16px 24px;
    color: #000000d9;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 6%);
    border-radius: 2px 2px 0 0;
  }

  &-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.5715;
    word-wrap: break-word;
  }

  &-footer {
    padding: 10px 16px;
    text-align: right;
    background: 0 0;
    border-top: 1px solid rgba(0, 0, 0, 6%);
    border-radius: 0 0 2px 2px;
  }

  .effect() {
    animation-duration: 0.3s;
    animation-fill-mode: both;
  }

  &-zoom-enter,
  &-zoom-appear {
    opacity: 0;
    .effect();
    animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
    animation-play-state: paused;
  }

  &-zoom-leave {
    .effect();
    animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
    animation-play-state: paused;
  }

  &-zoom-enter&-zoom-enter-active,
  &-zoom-appear&-zoom-appear-active {
    animation-name: ym-dialog-zoom-in;
    animation-play-state: running;
  }

  &-zoom-leave&-zoom-leave-active {
    animation-name: ym-dialog-zoom-out;
    animation-play-state: running;
  }

  @keyframes ym-dialog-zoom-in {
    0% {
      opacity: 0;
      transform: scale(0, 0);
    }
    100% {
      opacity: 1;
      transform: scale(1, 1);
    }
  }
  @keyframes ym-dialog-zoom-out {
    0% {
      transform: scale(1, 1);
    }
    100% {
      opacity: 0;
      transform: scale(0, 0);
    }
  }
}

.@{prefixCls}-centered {
  text-align: center;
  &::before {
    display: inline-block;
    width: 0;
    height: 100%;
    vertical-align: middle;
    content: '';
  }
  .@{prefixCls} {
    display: inline-block;
    padding-bottom: 0;
    top: 0;
    text-align: left;
    vertical-align: middle;
  }
}

//视口宽度 >= 768时，该样式生效
// @media (min-width: 768px) {
//   .@{prefixCls} {
// width: 600px;
// margin: 30px auto;
//   }
// }
